import requests

session = requests.Session()
# 内容为空的cookie
print(session.cookies)

session.post("https://vip.hdbz.net/auth/ajaxlogin",data = {
    "username": "17633974985",
    "userpwd": "123456abc"
})
# 登录之后 已经保存了用户cookie
print(session.cookies)

res = session.get("https://vip.hdbz.net/site/downloadlist?page=1&limit=10")

# 获取数据
print(res.json())

res = session.get("https://vip.hdbz.net/auth/loginout", allow_redirects=False)
print(session.cookies)
print(res)






